import { http } from '@/axios'

/**
 * @description 会话列表
 */
export function messageList(data) {
  return http.request({
    url: '/chats/list',
    method: 'GET',
    params: data,
  })
}

/**
 * @description 会话内容
 */
export function messageContents(data) {
  return http.request({
    url: `/chats/messages/${data.conversationId}`,
    method: 'GET',
  })
}

/**
 * @description  删除会话
 */
export function deleteMessage(data) {
  return http.request({
    url: '/chats/delete',
    method: 'POST',
    data,
  })
}
